#!/usr/bin/ksh



date >> /script/backup_full_init_out.txt
echo 'start rman backup_full '>> /script/backup_full_init_out.txt


x1oooo=$(date +"%y_%m_%d")

sed   's/x1oooo/'$x1oooo'/g'  /script/backup_full_rman.tpl  >/script/backup_full.rman


#rman  backup
export LANG=en_US
export NLS_LANG="simplified chinese_china".zhs16gbk
export NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss' 
export ORACLE_BASE=/ora10g
export ORACLE_HOME=$ORACLE_BASE/db
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/usr/local/lib
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=trff


 rman target /  cmdfile=/script/backup_full.rman  log=/script/backup_full.rman.log  


#--delete  backup
 rman target /  cmdfile=/script/obsolete_delete.rman  log=/script/obsolete_delete.rman.log  





date >> /script/backup_full_init_out.txt
echo 'end rman backup '>> /script/backup_full_init_out.txt



